package org.dragon.services;

import jakarta.servlet.http.HttpServletRequest;
import org.dragon.models.RedisSessionAccount;

/**
 * Author:     Zhao Yan
 * DateTime:   2023/5/18 9:13
 */
public interface SessionAccountService {

    RedisSessionAccount query(String token);

    RedisSessionAccount query(String token, HttpServletRequest request);

    RedisSessionAccount query(HttpServletRequest request);

    void save(String token, RedisSessionAccount account, long timeoutInMinutes);
}
